package com.ruoyi.project.syl_LiBiao.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

/**
 * 病历表,挂号表,处方表 结合
 */
public class PrOrReOrCa extends BaseEntity {
    private OutpatientCase outpatientCase;
    private OutpatientPrescription outpatientPrescription;
    private OutpatientRegister  outpatientRegister;

    /** 挂号单号
     */
    @Excel(name = "挂号单号 ")
    private String registerId;

    public PrOrReOrCa() {
    }

    @Override
    public String toString() {
        return "PrOrReOrCa{" +
                "outpatientCase=" + outpatientCase +
                ", outpatientPrescription=" + outpatientPrescription +
                ", outpatientRegister=" + outpatientRegister +
                ", registerId='" + registerId + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PrOrReOrCa)) return false;
        PrOrReOrCa that = (PrOrReOrCa) o;
        return Objects.equals(outpatientCase, that.outpatientCase) &&
                Objects.equals(outpatientPrescription, that.outpatientPrescription) &&
                Objects.equals(outpatientRegister, that.outpatientRegister) &&
                Objects.equals(registerId, that.registerId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(outpatientCase, outpatientPrescription, outpatientRegister, registerId);
    }

    public OutpatientCase getOutpatientCase() {
        return outpatientCase;
    }

    public void setOutpatientCase(OutpatientCase outpatientCase) {
        this.outpatientCase = outpatientCase;
    }

    public OutpatientPrescription getOutpatientPrescription() {
        return outpatientPrescription;
    }

    public void setOutpatientPrescription(OutpatientPrescription outpatientPrescription) {
        this.outpatientPrescription = outpatientPrescription;
    }

    public OutpatientRegister getOutpatientRegister() {
        return outpatientRegister;
    }

    public void setOutpatientRegister(OutpatientRegister outpatientRegister) {
        this.outpatientRegister = outpatientRegister;
    }

    public String getRegisterId() {
        return registerId;
    }

    public void setRegisterId(String registerId) {
        this.registerId = registerId;
    }

    public PrOrReOrCa(OutpatientCase outpatientCase, OutpatientPrescription outpatientPrescription, OutpatientRegister outpatientRegister, String registerId) {
        this.outpatientCase = outpatientCase;
        this.outpatientPrescription = outpatientPrescription;
        this.outpatientRegister = outpatientRegister;
        this.registerId = registerId;
    }
}

